import {http} from '@/utils/http'



enum Api {
    addSysBanner = '/admin/sysBanner/addSysBanner',
    updateSysBanner = '/admin/sysBanner/updateSysBanner',
    deleteSysBanner = '/admin/sysBanner/deleteSysBanner',
    getSysBanner = '/admin/sysBanner/getSysBanner',
    getSysBannerPage = '/admin/sysBanner/getSysBannerPage',
}



// 添加系统轮播图
export function addSysBanner(data:any) {
    return http.post<any>(Api.addSysBanner, data)
}

// 修改系统轮播图
export function updateSysBanner(data:any) {
    return http.post<any>(Api.updateSysBanner, data)
}

// 删除系统轮播图
export function deleteSysBanner(id:string) {
    return http.post<any>(Api.deleteSysBanner + id)
}

// 获取系统轮播图详情
export function getSysBanner(id:any) {
    return http.post<any>(Api.getSysBanner+id)
}

// 获取系统轮播图分页列表
export function getSysBannerPage(data:any) {
    return http.post<any>(Api.getSysBannerPage, data)
}





















